{config_load file=info.conf section="links"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#title#}</title>
{#css_style#}{#css_flipPage#}{#js_query#}
<style type="text/css">
{literal}
.table_yj{width:100%;margin-top:5px;table-layout:fixed;word-break:break-all;}
.th1_yj{color:#444;background-color: rgb(255,232,196);text-align:center;border:1px solid rgb(255,204,127); height:25px; font-size:14px; font-family:"微软雅黑";line-height:15px;font-weight:bold;}
.th2_yj{color:#444;background-color: rgb(255,232,196);text-align:center;border:1px solid rgb(255,204,127); height:20px; font-size:12px; font-family:"微软雅黑";line-height:15px;font-weight:bold;}
.table_yj td{font-family:Arial;color:#666; background-color: rgb(255,255,255);text-align:center; line-height:16px; border:1px solid rgb(255,204,127);height:40px;}
{/literal}
</style>
</head>
<body>
{include file="head.tpl"}
 <div class="waps">
       <div class="con">     
            <div  class="nopa">
            	<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
                    <div class="pbox">
				<!--左框架开始 -->
						{include file="user_left.tpl"}
						<!--左框架结束-->
						<div class="ls_rbox">
							<div class="am_title"><span class="lsfonts_r">用户注册信息列表 </span></div>
							<div class="listers">
							<div style=" height:28px;">
							<table align="right" > 
								<tr>  
								<td valign="middle">
									客户姓名：<input id="name" type="text" class="step_txt" style="width:80px;padding-left:2px;" value="{$name}"/>
								</td> 
								<td valign="middle"> 
									<input type="button" class="btn_such" style=" margin-left:5px" onclick="search(0);"/> 
								</td> 
								<td valign="middle"> 
									<input type="button" class="btn_suchall" style=" margin-left:5px" onclick="search(1);"/> 
								</td> 
								</tr> 
							</table>
                            </div>
					
                            <table class="table_yj">
								<tr>
								    <th class="th1_yj">姓名</th>
								    <th class="th1_yj">昵称</th>
								    <th class="th1_yj">联系方式</th>
								    <th class="th1_yj">类型</th>
								    <th class="th1_yj">有效期</th>
								    <th colspan="3" class="th1_yj">附加费</th>
								    <th class="th1_yj">注册时间</th>
								    <th class="th1_yj">审核</th>
								  	<th class="th1_yj">备注</th>
								  	<th class="th1_yj">操作</th>
								  </tr>
								  <tr>
								    <th class="th1_yj">Name</th>
								    <th class="th1_yj">Nick</th>
								    <th class="th1_yj">Con</th>
								    <th class="th1_yj">Type</th>
								    <th class="th1_yj">Valid</th>
								    <th class="th2_yj">20'</th>
								    <th class="th2_yj">40'GP</th>
								    <th class="th2_yj">40'HC</th>
								    <th class="th1_yj">RegT</th>
								    <th class="th1_yj">Audit</th>
								  	<th class="th1_yj">Remark</th>
								  	<th class="th1_yj">Oper</th>
								  </tr>
                               {section name=results loop=$userdata}
								<tr>
									<td>{$userdata[results].name}</td>
									<td>{$userdata[results].nick}</td>
									<td>
										<a href="javascript:void(0)" onclick="$('#info_{$smarty.section.results.index}').fadeIn(1000);">查看</a>
									</td>
									<td>{$userdata[results].type}</td>
									<td>{$userdata[results].valid|date_format:"%Y-%m-%d"}</td>
									<td>{$userdata[results].add20gp}</td>
									<td>{$userdata[results].add40gp}</td>
									<td>{$userdata[results].add40hc}</td>
									<td>{$userdata[results].rg_time|date_format:"%Y-%m-%d"}</td>
									<td>{$userdata[results].status|get_status}</td>
									<td>{$userdata[results].aremark}</td>
									<td>
										<a href="verify.php?i={$userdata[results].id}"> 审核 </a><br/><a href="javascript:del('{$userdata[results].id}');">删除</a>
									</td>
								</tr>
								<tr id="info_{$smarty.section.results.index}" style="display:none;]">
									<td colspan="12">
										<div  class="warning">
											<div class="hot_title"></div>
											<div class="toclose"><img src="../images/close.png" onclick="$('#info_{$smarty.section.results.index}').fadeOut(1000);"/></div>
											{if $userdata[results].cname}【公司名称】{$userdata[results].cname}<br/>{/if}
											{if $userdata[results].cadd}【公司地址】{$userdata[results].cadd}<br/>{/if}
											【TEL】{$userdata[results].tel}【QQ】{$userdata[results].qq}【MSN】{$userdata[results].msn}
											{if $userdata[results].uremark}<br>【描述】{$userdata[results].uremark}{/if}
										</div>
									</td>
								</tr>
								{sectionelse}<tr><td colspan="10">没有搜索到任何记录！</td></tr>{/section}
                                </table>
                            	<div class="digg">{$pagination}</div>
                            </div>
						</div>
						<!--右框架结束-->
					<div class="clear"></div>
</div></div></div></div>
{include file="foot.tpl"}
<script type="text/javascript">
{literal}
function del(i){
	if(confirm('确定要删除本条用户吗?')){
		var params ={act:"del",i:i};
		$.post('list.php',params,function(data) {
			if(data>0){
				window.location.reload();
			}else{
				alert(data);
			}
		});	
	}
}
function search(i){
	var name="";
	if(i==0) name=encodeURIComponent($.trim($("#name").attr("value")));
	//if(i==0) zz=encodeURIComponent($.trim($("#zz").attr("value")));
	//if(i==0) zc=encodeURIComponent($.trim($("#zc").attr("value")));
	//if(i==0) ze=encodeURIComponent($.trim($("#ze").attr("value")));
	window.location = "list.php?n="+name;
}
</script>{/literal}
</body>
</html>